import _fatch from '@/api/request'
function getUserList (data) {
  return _fatch({
    url: '/user/list',
    params: data
  })
}
function addUser(data){
  return _fatch({
    url:'/user/add',
    method:'post',
    data,
  })
}
function statusUser(data){
  return _fatch({
    url:'/user/status',
    method:'post',
    data,
  })
}
function removeUser(data){
  return _fatch({
    url:'/user/remove',
    method:'post',
    data
  })
}
function editUser(data){
  return _fatch({
    url:'/user/edit',
    method:'post',
    data
  })
}
export { getUserList, addUser, statusUser, removeUser, editUser}
